package com.guoxin.thread.lock;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 共享资源
 *
 * @author guoxin
 * @date 2019/6/28
 */
public class Resource {
    public String name;
    public String six;
    public boolean flag;
    public Lock lock = new ReentrantLock();
    public Condition condition = lock.newCondition();
}
